<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DefaultController
 *
 * @author Zelic
 */
class ZF_LoginController extends ZF_DefaultController {
     public function preDispatch() {
            $auth = Zend_Auth::getInstance();
            if (!$auth->hasIdentity()) {
                    if ($this->_request->getActionName() != 'login') {
                        $this->_redirect('/user/login');
                    }
                    
                }
                else{
                    $data = $auth->getStorage()->read();
                    
                    $this->view->profileNameSpace = (array)$data ;
                    
                }
    }

  
}

?>
